package cn.south.campus.admin.campus.mapper;

import cn.south.campus.admin.campus.model.entity.Ad;
import cn.south.campus.admin.campus.model.req.AdReq;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author chow
 * @since 2024-11-11
 */
public interface AdMapper extends BaseMapper<Ad> {

    List<Ad> selectByList(AdReq req);

    IPage<Ad> selectByPage(Page<Ad> tPage, @Param("req") AdReq req);

}
